<extend name="public/base" />
<block name="net_title">
<meta name="description" content="{$term[0]['cltitle']}" />
<meta name="keywords" content="{$term[0]['clintro']}" >
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no" />

<title>{$term[0]['clsort']}</title>

</block>
<block name="title">
               <h1 class="title">{$term[0]['clsort']}</h1>
</block>
<block name="diy">
<script type="text/javascript"> 
$(document).ready(function(){
$(".p_text").each(function(){
var maxwidth=13;
if($(this).text().length>maxwidth){
$(this).text($(this).text().substring(0,maxwidth));
$(this).html($(this).html()+"...");
}
});
});
</script> 
     <div class="content">
          <div id="box">
		  <?php $i=1;?>
               <ul class="ren_list">
			   <foreach name="content" item="vo">
				<?php if($i%3!=0){ $i++; ?>
					<li>
						<a href="{:U('Content/content',array('id'=>$vo['coid']))}">
							<img src="http://www.agriplan.cn/images/<?php echo $str = substr($vo['codate'],0,7);?>/{$pic[$vo['coid']]}" />
							<p class="p_text">{$vo['cotitle']}</p>
						</a>
					</li>
				<?php }else{ $i++; ?>
					<li class="li_last">
						<a href="{:U('Content/content',array('id'=>$vo['coid']))}">
							<img src="http://www.agriplan.cn/images/<?php echo $str = substr($vo['codate'],0,7);?>/{$pic[$vo['coid']]}" />
							<p class="p_text">{$vo['cotitle']}</p>
						</a>
					</li>
				<?php }?>
			   </foreach>
               </ul>
			   <div id="num">
                     {$page}
                </div> 
				
          </div>
     </div>
</block>